package org.qy137.feign;

import com.qy137.vo.CourseVo;
import org.qy137.utils.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("education-core")
public interface CoreFeign {
    @PostMapping({"/core/course/findCourse/{page}/{limit}"})
    CommonResult findCourseByPage(@PathVariable("page") Integer page, @PathVariable("limit") Integer limit, @RequestBody CourseVo courseVo, @RequestParam(value = "id",required = false) String id);

    @GetMapping({"/core/course/updateAdd"})
    Integer updateAdd(@RequestParam(value = "id",required = false) String id);

    @PostMapping({"/core/course/getAllMenu"})
    CommonResult getAllMenu();
}
